package xxl.robotlegs.extensions.matching.impl 
{
	import xxl.robotlegs.framework.api.IMatcher;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class InstanceOfMatcher implements IMatcher 
	{
		private var _type:Class;
		
		public function InstanceOfMatcher(type:Class) 
		{
			_type = type;
		}
		
		/* INTERFACE xxl.robotlegs.framework.api.IMatcher */
		
		public function matches(item:*):Boolean 
		{
			return item is _type;
		}
		
	}

}